<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include/src :: form_base_js_and_css"/>
</head>
<body style="background-color: #f2f2f2; height: 100%;">

	<div id="id_panel">
	</div>
	<script th:inline="javascript">

	// 表单初始化
	var formObj = null;
	//使用layui的sku模块
	layui.config({
	    //自定义layui组件的目录,设定扩展的layui模块的所在目录，一般用于外部模块扩展
	    base: '/static/js/layui_extends/',
		version: true
	}).use(['form', 'jquery', 'laydate', 'YsForm', 'YsModal'], function(){
		var $ = layui.jquery,
		form = layui.form,
				laydate = layui.laydate,
				YsForm = layui.YsForm,
				YsModal = layui.YsModal
		/* 
		* 表单初始化
		* 参数1：表单配置参数
		* 参数2：子表配置参数
		*/
		formObj = YsForm.init(
		{
			id:'id_panel', // 页面容器ID
			dto: $.parseJSON(JSON.stringify([[${dto}]]))
		}
		);

		var str = ``
			+ `<div class="layui-inline layui-col-xs4 margin_r_0">`
			+ `<label class="layui-form-label padding_6_0 width_160 margin_0_0_0_N10"><font class="f_red">*</font>A+附件：</label>`
			+ `<div class="layui-input-block margin_l_150 min_height_38">`
			+ `<button type="button" class="layui-btn layui-btn-primary" onclick="aplusFileManage()">点击上传A+附件</button>`
			+ `</div>`
			+ `</div>`;
		$('#' + formObj.c.id_form).find('.layui-form-item').append(str);
		//formObj.afterFormElement(32, str);
	});

	</script>

	<script type="text/javascript">


		//A+附件页面
		function aplusFileManage() {
			layer.msg("保存后才能操作A+附件", {icon: 2});
		}
	</script>
</body>
</html>
